{include file="lib/front_header.html"}
<form action="login/index" method="post">
  	<div class="form_box">
	  	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="mtb30">
	  		<tbody class="tac">
		  		<tr>
					<td>
						<input type="text" class="txt light_gray" name="info[email]" style="color:#333" AUTOCOMPLETE="OFF">
						<input type="text" class="txt light_gray" value="邮箱/会员名" style="display:none;color:#8b8b8b">
					</td>
		  		</tr>
		  		<tr>
					<td>
						<input type="password" class="txt light_gray" name="info[password]" style="color:#333" AUTOCOMPLETE="OFF">
						<input type="text" class="txt light_gray" value="输入密码" style="display:none">
					</td>
		  		</tr>
		  		<tr>
		  			<td class="tac"><input name="sub" type="button" value="开始嘴闲" class="btn_1 mtb20"> </td>
		  		</tr>
		  		<tr>
		  			<td class="tac"><a href="login/reforget">忘记密码</a> &nbsp; &nbsp; <a href="register/index">还没注册</a></td>
		  		</tr>
	  		</tbody>
	  	</table>
	</div>
</form>


<script type="text/javascript" charset="utf-8">
  $.fn.input_msg = function(selecter){
    var self = this;
selecter = $(selecter);
    selecter.focus(function(){
      selecter.hide();
        self.show().focus();
    });
    self.blur(function(){
        if (self.val() == '') {
            selecter.show();
        self.hide();
        }
    });
		self.blur();
  };
	$(function(){
		$("input[name='info[email]']").input_msg($("input[name='info[email]']").next());
		$("input[name='info[password]']").input_msg($("input[name='info[password]']").next());
   
		});


	$("input[name='sub']").click(function(){
		
		var email=$("input[name='info[email]']").val();
		var password=$("input[name='info[password]']").val();
		if(!email || !password){
			alert('信息不完整!');
		}else{
			this.form.submit();
		}
			
	});

	$(document).ready(function(){
	$(':input').bind('keyup', function(event){
	   if (event.keyCode=="13"){
	   	$("form").submit();
	   }
	});
	});
</script>



{include file="lib/front_footer.html"}
